fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Close price - EMA

    Questions & Answers
    2
    5
    393
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rhang last edited by

      Hi all,

      How to create a formula that becomes true when the closing price - EMA10 (close price for example) > 3 ?
      Thanks

      T 1 Reply Last reply Reply Quote 0
      • T
        trader.philipps @rhang last edited by

        @rhang Like this

        0_1579189017829_931284cc-5804-42f2-8d24-0f511930fbd9-image.png

        Positive result: Price above MA
        Negative result: Price below MA

        I like to share my knowledge, but expect the others to contribute as well.

        1 Reply Last reply Reply Quote 0
        • R
          rhang last edited by

          @trader-philipps , thank you for shining light on this. so I got as far as below
          ![alt text](0_1579194139954_Capture.JPG image url)

          so now this means the variables will be updated for each tick with the difference of closing price and EMA of closing price. now how to do the BuyLastEMA > 3 for example (that can be optimized later on in EA)?
          I tried to find where to put in condition for BuyLastEMA > 3 but can not find where or how to do it.
          Thanks alot.
          Rhang

          T 1 Reply Last reply Reply Quote 0
          • T
            trader.philipps @rhang last edited by

            @rhang You mean you want to check if the variable BuyLastEMA is bigger than 3? Use a condition block like that.

            0_1579194719438_8e2692fa-a8c2-42cb-a19b-9ee28089cc8e-image.png

            In order to get the variable in the input field, right-klick on it an choose your BuyLastEMA variable.

            I like to share my knowledge, but expect the others to contribute as well.

            1 Reply Last reply Reply Quote 0
            • R
              rhang last edited by

              @trader-philipps , exactly. Super, thank you. it works. 🙂

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              • First post
                Last post

              Online Users

              M
              Q
              G
              Q
              E

              10
              Online

              146.8k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors